package com.thinkcube.edutainment.domain.dto;

import org.springframework.util.MultiValueMap;

import android.os.Parcel;
import android.os.Parcelable;

public class PaymentDto extends UserOAthDto implements Parcelable {

	String itemType;
	String itemId;
	String paymentMethod;
	String paymentPlan;
	String mobileNumberId;
	String couponId;
	String couponCode;

	@Override
	public MultiValueMap<String, String> getMultiValuedMap() {
		MultiValueMap<String, String> mvMap = super.getMultiValuedMap();

		mvMap.add("item_type", this.getItemType());
		mvMap.add("item_id", this.getItemId());
		mvMap.add("payment_method", this.getPaymentMethod());
		mvMap.add("payment_plan", this.getPaymentPlan());
		mvMap.add("mobile_number_id", this.getMobileNumberId());
		mvMap.add("coupon_id", this.getCouponId());
		mvMap.add("coupon_code", this.getCouponCode());

		return mvMap;
	}
	
	

	public String getCouponCode() {
		return couponCode;
	}



	public void setCouponCode(String couponCode) {
		this.couponCode = couponCode;
	}



	public String getItemType() {
		return this.itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public String getItemId() {
		return this.itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getPaymentMethod() {
		return this.paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public String getPaymentPlan() {
		return this.paymentPlan;
	}

	public void setPaymentPlan(String paymentPlan) {
		this.paymentPlan = paymentPlan;
	}

	public String getMobileNumberId() {
		return this.mobileNumberId;
	}

	public void setMobileNumberId(String mobileNumberId) {
		this.mobileNumberId = mobileNumberId;
	}

	public String getCouponId() {
		return this.couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	protected PaymentDto(Parcel in) {
		itemType = in.readString();
		itemId = in.readString();
		paymentMethod = in.readString();
		paymentPlan = in.readString();
		mobileNumberId = in.readString();
		couponId = in.readString();
		couponCode = in.readString();
	}

	public PaymentDto() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(itemType);
		dest.writeString(itemId);
		dest.writeString(paymentMethod);
		dest.writeString(paymentPlan);
		dest.writeString(mobileNumberId);
		dest.writeString(couponId);
		dest.writeString(couponCode);
	}

	public static final Parcelable.Creator<PaymentDto> CREATOR = new Parcelable.Creator<PaymentDto>() {
		public PaymentDto createFromParcel(Parcel in) {
			return new PaymentDto(in);
		}

		public PaymentDto[] newArray(int size) {
			return new PaymentDto[size];
		}
	};
}